<template>
    <div class="con">
        <slot class="left">
            <div class="portrait"></div>
        </slot>
        <slot class="center">消息</slot>
        <slot class="right"><img src="../assets/camera.png"/></slot>
        
    </div>
</template>
<script>

export default {
  name: 'Body',
  props: {
    msg: String
},
data(){
return{

        }
    },
}
</script>
<style scoped>
*{
    margin: 0;
    padding: 0;
}
.con{
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    line-height: 60px;
    text-align: center;
    background: darksalmon;
}
.portrait{
    width: 50px;
    height: 50px;
    margin-top: 6px;
    margin-left: 30px;
    background:rgb(191, 204, 228);
    border-radius: 50%;
}
.left{
    width: 30%;
}
.center{
    width: 40%;
}
.right{
    width: 30%;
}
.con img{
    width: 40px;
    height: 40px;
    margin-top: 10px;
}
</style>